import components from "@/components";
import * as util from "@/plugin/util.js";
import  * as apiTool from "@/plugin/$api/$ajax";

export default {
  install: (app, options) => {
    // console.log(app, options);
    app.use(components); //项目全局组件
    app.config.globalProperties.$util = util; //工具集合   
    app.config.globalProperties.$_apiTool = apiTool; //ajax
    app.config.globalProperties.$ajax = apiTool.ajax; //ajax
    app.config.globalProperties.$api = apiTool.$api; //api入口
  }
};
